import request from '@/utils/request'

// 实例--可删除
export const getUserInfo = (data: Object) => {
  return request({
    url: '/user',
    method: 'get',
    data
  })
}

export const imgUrl = () => {
  return new Promise((resolve, reject) => {
    setTimeout(() => {
      resolve({
        data: [
          {
            id: 1,
            title: '1',
            url: 'https://imgcps.jd.com/img-cubic/creative_server_cia_jdcloud/v2/2000367/100014133071/FocusFullshop/CkNqZnMvdDEvMTY4NzE2LzI2LzM4NTE1LzQ3NjczLzY0YjNjMTg5RjVkYjJhZDk5LzFkMTNjYmRlNzQxZTliNTIucG5nEgkxLXR5XzBfNTIwAjjvi3pCEwoP6ICB5p2_5rK554Of5py6EAFCFgoS57K-5b2p5LiN5a656ZSZ6L-HEAJCEAoM56uL5Y2z5oqi6LStEAZCCgoG5LyY6YCJEAdYz566yvQC/cr/s/q.jpg'
          },
          {
            id: 2,
            title: '2',
            url: 'https://img10.360buyimg.com/pop/s590x470_jfs/t1/125420/30/36346/96674/64b50b2fF423844f3/cd69ada773cadcaa.jpg'
          },
          {
            id: 3,
            title: '3',
            url: 'https://img13.360buyimg.com/pop/s590x470_jfs/t1/187384/12/35731/87229/64bf76cbFd086e4b9/a4950f5fe6886466.jpg'
          },
          {
            id: 4,
            title: '4',
            url: 'https://imgcps.jd.com/img-cubic/creative_server_cia_jdcloud/v2/2000366/100021830714/FocusFullshop/CkNqZnMvdDEvMTU4MTk0LzIwLzM4OTExLzUxOTkzLzY0YjNjMWZiRjk4NTY0NzcxLzExMTZkMDMwZDBhMjViZTcucG5nEgkzLXR5XzBfNTQwAjjui3pCHQoZ6I6x5LuV6L6-5omL5p-EL-aWueWQkeebmBABQhMKD-S9oOWAvOW-l-aLpeaciRACQhAKDOeri-WNs-aKoui0rRAGQgoKBui2heWAvBAHWLqIkM70Ag/cr/s/q.jpg'
          },
          {
            id: 5,
            title: '5',
            url: 'https://imgcps.jd.com/ling-cubic/ling4/lab/amZzL3QxLzQ5MTQzLzI4LzE3MDM2LzIxOTg4OS82MTM4NDhkNkU2MDY1ZWM5OC9iM2I4ZWE1ODE5MmQzNmI0LnBuZw/5Lqs6YCJ5aW96LSn/5L2g5YC85b6X5oul5pyJ/1635185337375584258/cr/s/q.jpg'
          }
        ],
        code: 200
      })
    }, 100)
  })
}
